package com.ruoyi.generator.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 代码生产日志对象 biz_generated_log
 * 
 * @author ruoyi
 * @date 2024-12-26
 */
public class GeneratedLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 主数据库链接 */
    @Excel(name = "主数据库链接")
    private Long userId;

    /** 主数据库链接 */
    @Excel(name = "主数据库链接")
    private Long mainBaseId;

    /** 测试数据源链接 */
    @Excel(name = "测试数据源链接")
    private Long testBaseId;

    /** 代码生成项目名 */
    @Excel(name = "代码生成项目名")
    private String genProjectName;

    /** 生成数据库名称 */
    @Excel(name = "生成数据库名称")
    private String genBaseName;

    /** 生成sql表语句 */
    @Excel(name = "生成sql表语句")
    private String genBaseSql;

    /** 生成类型 */
    @Excel(name = "生成类型")
    private String genType;

    /** 审核状态 0:草稿 1:已提交 2:已测试 3:待审核 4:已审核 5:已驳回 6:测试未通过 */
    @Excel(name = "审核状态 0:草稿 1:已提交 2:已测试 3:待审核 4:已审核 5:已驳回 6:测试未通过")
    private String genStatus;

    /** 状态说明 */
    @Excel(name = "状态说明")
    private String genStatusInfo;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMainBaseId(Long mainBaseId) 
    {
        this.mainBaseId = mainBaseId;
    }

    public Long getMainBaseId() 
    {
        return mainBaseId;
    }
    public void setTestBaseId(Long testBaseId) 
    {
        this.testBaseId = testBaseId;
    }

    public Long getTestBaseId() 
    {
        return testBaseId;
    }
    public void setGenProjectName(String genProjectName) 
    {
        this.genProjectName = genProjectName;
    }

    public String getGenProjectName() 
    {
        return genProjectName;
    }
    public void setGenBaseName(String genBaseName) 
    {
        this.genBaseName = genBaseName;
    }

    public String getGenBaseName() 
    {
        return genBaseName;
    }
    public void setGenBaseSql(String genBaseSql) 
    {
        this.genBaseSql = genBaseSql;
    }

    public String getGenBaseSql() 
    {
        return genBaseSql;
    }
    public void setGenType(String genType) 
    {
        this.genType = genType;
    }

    public String getGenType() 
    {
        return genType;
    }
    public void setGenStatus(String genStatus) 
    {
        this.genStatus = genStatus;
    }

    public String getGenStatus() 
    {
        return genStatus;
    }
    public void setGenStatusInfo(String genStatusInfo) 
    {
        this.genStatusInfo = genStatusInfo;
    }

    public String getGenStatusInfo() 
    {
        return genStatusInfo;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("mainBaseId", getMainBaseId())
            .append("testBaseId", getTestBaseId())
            .append("genProjectName", getGenProjectName())
            .append("genBaseName", getGenBaseName())
            .append("genBaseSql", getGenBaseSql())
            .append("genType", getGenType())
            .append("genStatus", getGenStatus())
            .append("genStatusInfo", getGenStatusInfo())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
